package com.example.pmxt.modules.Notice;

import com.example.pmxt.common.BaseService;
import com.example.pmxt.domain.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class NoticeService extends BaseService<NoticeMapper, Notice> {

    private NoticeMapper noticeMapper;

    @Autowired
    public NoticeService( NoticeMapper noticeMapper){
        this.noticeMapper = noticeMapper;
    }

    //逻辑删除轮播图
    @Transactional
    public int delete(Integer id) {
        return noticeMapper.delete(id);
    }
}
